package com.aw.guiguzi.module.setting

import android.widget.TextView
import com.aw.baselib.base.AwBaseBindingActivity
import com.aw.baselib.constants.Extras
import com.aw.guiguzi.R
import com.aw.guiguzi.bean.MsgItemBean
import com.aw.guiguzi.databinding.ActivitySettingMsgDetailBinding

@Suppress("DEPRECATION")
class MsgDetailActivity : AwBaseBindingActivity<ActivitySettingMsgDetailBinding?>() {
    private var mBean: MsgItemBean? = null
    override fun getViewBinding(): ActivitySettingMsgDetailBinding {
        return ActivitySettingMsgDetailBinding.inflate(layoutInflater)
    }

    override fun initView() {
        super.initView()
        setToolbar("信息详情", null)
    }

    override fun initData() {
        super.initData()
        mBean = intent.getSerializableExtra(Extras.params) as MsgItemBean?
        if (mBean == null) {
            showDialogToFinish("数据异常")
            return
        }
        setText(binding?.tvDetailContent, mBean!!.templateContent)
    }

    override fun initListener() {
        super.initListener()
    }
}